import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import websocket from '@/store/modules/websocket.js';
let store;
let state = {
	primaryColor: '#0052D9', // 字体颜色
	cancelColor: '#EFEFEF',
	buttonColor: 'linear-gradient( 270deg, #3078FF 0%, #009DFE 100%)', //按扭颜色
	bgPrimaryColor: 'linear-gradient( 179deg, #EDF6FD 0%, #C8EEFD 10%, #FFFFFF 100%)',
}
let mutations = {
	setPrimaryColor(state, color) {
		state.primaryColor = color;
	},
	setButtonColor(state, color) {
		state.buttonColor = color;
	},
	setbgPrimaryColor(state, color) {
		state.bgPrimaryColor = color;
	},
};
store = new Vuex.Store({
	state,
	mutations,
});
// export default new Vuex.Store({
// 	modules: {
// 		websocket,
// 		store
// 	}
// })
export default store;